#ifndef THREED_H
#define THREED_H
//使用q3dsurface绘图

#include <QWidget>
#include <any>
#include <QMessageBox>
#include <QtDataVisualization>//3D可视化库
#include <QSurface>//处理窗口的大小和位置、与窗口系统进行交互等
#include <QBoxLayout>//布局管理器
using namespace QtDataVisualization;

namespace Ui {
class ThreeD;
}

class ThreeD : public QWidget
{
    Q_OBJECT

public:
    explicit ThreeD(QWidget *parent = nullptr);
    ~ThreeD();
    QSurface3DSeries *series;
    Q3DSurface *groupBox;
    QSurfaceDataArray * dataArray;//数据
    bool getResult(const std::vector<std::any>& post , double& ret, char k, char h, double x, double y);

private slots:
    void on_create_clicked();

    void on_clear_clicked();

private:
    Ui::ThreeD *ui;
};

#endif // THREED_H
